<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <style type="text/css">
        .aui-list .aui-list-item-media {
            width: 3rem;
        }
        .notes-add {
            position: fixed;
            left: 0.5rem;
            bottom: 0.5rem;
            width: 3rem;
            z-index: 99;
        }
        textarea {
            height: 12rem;
            background-color: #ffffff;
            padding: 0.5rem;
        }

    </style>
</head>
<body>
    <section class="aui-content-padded">
        <textarea id="msg_id" placeholder="在这里输入要发送的内容..."></textarea>
    </section>
</body>
<script type="text/javascript" src="../script/zepto.min.js" ></script>
<script type="text/javascript" src="../script/api.js" ></script>
<script type="text/javascript">
    apiready = function(){

    }

		function sendMsg(){
				var msg = $("#msg_id").val();
        var phone = api.pageParam.phone;
        api.sms({
            numbers: [phone],
            text: '测试短信'
        }, function(ret, err) {
            if (ret && ret.status) {
                //已发送
                api.toast({
                    msg:'发送成功！'
                });
                api.closeWin();
            } else {
                //发送失败
                msg:'发送失败！'
            }
        });
		}
</script>
</html>
